//
//  FDNextJX.m
//  Fragrance
//
//  Created by yinzhongyuan on 15/5/25.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "FDNextJX.h"

@implementation FDNextJX

+(NSMutableArray *)getNextModel:(NSData *)data
{
    
    NSMutableArray *arr = [NSMutableArray array];
    NSError *error = nil;
    
    NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:&error];
    FDNextModel *model = [FDNextModel getFDNextModel];
    model.title = [dic objectForKey:@"title"];
    
    model.level = [dic objectForKey:@"level"];
    model.during = [dic objectForKey:@"during"];
    model.taste = [dic objectForKey:@"cuisine"];
    model.zuofa = [dic objectForKey:@"technics"];
    
    model.tips = [dic objectForKey:@"tips"];
    
    model.saveNum = [dic objectForKey:@"favnum"];
    model.replyNum = [dic objectForKey:@"replynum"];
    model.time = [dic objectForKey:@"time"];
    model.stepCount = [[dic objectForKey:@"stepcount"]integerValue];
    
        [arr addObject:model];
    return arr;
}



@end
